<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="{:C('ADMIN_CSS_URL')}pintuer.css">
<link rel="stylesheet" href="{:C('ADMIN_CSS_URL')}admin.css">
<script src="{:C('ADMIN_JS_URL')}jquery.js"></script>
<script src="{:C('ADMIN_JS_URL')}pintuer.js"></script>
<script type="text/javascript" charset="utf-8" src="{:C('PLUGIN_URL')}ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{:C('PLUGIN_URL')}ueditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{:C('PLUGIN_URL')}ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="" enctype="multipart/form-data">

      <foreach name="blog_info" item="v">
          <input type="hidden" name="blog_id" value="{$v.blog_id}">
      <div class="form-group">
        <div class="label">
          <label>标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="blog_title" value="{$v.blog_title}"/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>作者：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="author_name" value="{$v.author_name}"  />
          <div class="tips"></div>
        </div>
      </div>
        <div class="form-group">
          <div class="label">
            <label>分类标题：</label>
          </div>
          <div class="field">
            <select name="cate_id" class="input w50">
              <option value="0">请选择分类</option>
              <foreach name="cate_info" item="vv">
                <if condition="$v['cate_id'] eq $vv['cate_id']">
                      <option value="{$vv.cate_id}" selected="selected">{$vv.cate_name}</option>
                    <else/>
                      <option value="{$vv.cate_id}">{$vv.cate_name}</option>
                </if>
              </foreach>
            </select>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>logo：</label>
            </div>
            <div class="field">
                <input type="file" name="logo" class="button bg-blue margin-left" id="image1" value=""  style="float:left;">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{$v.blog_small_logo|substr=###,1}" alt="图片不存在">
            </div>
        </div>
      <div class="form-group">
        <div class="label">
          <label>文章内容：</label>
        </div>
        <div class="field">
          <textarea name="blog_content" class="input" id="article_content" style="height:200px; border:1px solid #ddd;">{$v.blog_content}</textarea>
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="clear"></div>
      <div class="form-group">
        <div class="label">
          <label>是否显示：</label>
        </div>
        <div class="field">
          <if condition="$v.is_show eq 0">
              <input type="radio" name="is_show" value="0" checked="checked">显示
              <input type="radio" name="is_show" value="1">不显示
             <else/>
              <input type="radio" name="is_show" value="0" >显示
              <input type="radio" name="is_show" value="1" checked="checked">不显示
          </if>

        </div>
      </div>
      </foreach>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('article_content');
</script>
</body></html>